import packageInfo from '../../package.json'

const { version } = packageInfo;

// 开发环境配置
export let baseUrl;
if (process.env.NODE_ENV === 'development') {
  baseUrl = "http://127.0.0.1:48080";
} else {
  baseUrl = "http://127.0.0.1:48080";
}
if (typeof baseUrl === 'undefined') {
  console.error('请检查.env配置文件是否存在');
} else {
  console.log(`[泉州信息工程学院 ${version}]  https://www.qzuie.edu.cn/`);
}

export const apiPath = "/app-api";
export const staticUrl = "http://test.yudao.iocoder.cn";
export const tenantId = 1;
export const websocketPath = "//infra/ws";
export const h5Url = import.meta.env.SHOPRO_H5_URL;

export default {
  baseUrl,
  apiPath,
  staticUrl,
  tenantId,
  websocketPath,
  h5Url,
};
